Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.routing.layouts--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.routing.layouts inside nuxeo-platform-document-routing-web-5.8.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="current_route_description" type="current_route_description"/>
  • <widget name="current_route_show_graph" type="current_route_show_graph">
          <fields>
            <field>#{layoutValue.document.id}
            </field>
          </fields>
          <handlingLabels>true</handlingLabels>
        </widget>
  • <widget name="current_route_abandon" type="current_route_abandon">
          <controls mode="any">
            <control name="requireSurroundingForm">true</control>
          </controls>
        </widget>
  • <widget name="current_route_user_tasks" type="current_route_user_tasks">
          <labels>
            <label mode="any"/>
          </labels>
          <properties widgetMode="any">
            <property name="displayTaskAdditionalActions">true</property>
          </properties>
          <controls mode="any">
            <control name="handleLabels">true</control>
            <control name="requireSurroundingForm">false</control>
          </controls>
        </widget>
  • <widget name="current_route_open_tasks" type="current_route_open_tasks">
          <labels>
            <label mode="any"/>
          </labels>
          <controls mode="any">
            <control name="handleLabels">true</control>
            <control name="requireSurroundingForm">true</control>
          </controls>
        </widget>
  • <widget name="current_route_previous_tasks" type="contentViewWithForms">
          <labels>
            <label mode="any"/>
          </labels>
          <translated>false</translated>
          <properties widgetMode="any">
            <property name="contentViewName">route_past_steps</property>
          </properties>
        </widget>
  • <widget name="current_route_panel_top" type="summary_current_document_custom_actions">
          <labels>
            <label mode="any"/>
          </labels>
          <properties widgetMode="any">
            <property name="category">CURRENT_ROUTE_PANEL_TOP</property>
            <property name="subStyleClass">summaryActions</property>
          </properties>
        </widget>
  • <widget name="current_route_panel_left" type="summary_current_document_custom_actions">
          <labels>
            <label mode="any"/>
          </labels>
          <properties widgetMode="any">
            <property name="category">CURRENT_ROUTE_PANEL_LEFT</property>
            <property name="subStyleClass">summaryActions</property>
          </properties>
        </widget>
  • <widget name="current_route_panel_right" type="summary_current_document_custom_actions">
          <labels>
            <label mode="any"/>
          </labels>
          <properties widgetMode="any">
            <property name="category">CURRENT_ROUTE_PANEL_RIGHT</property>
            <property name="subStyleClass">summaryActions</property>
          </properties>
        </widget>
  • <widget name="current_route_panel_bottom" type="summary_current_document_custom_actions">
          <labels>
            <label mode="any"/>
          </labels>
          <properties widgetMode="any">
            <property name="category">CURRENT_ROUTE_PANEL_BOTTOM</property>
            <property name="subStyleClass">summaryActions</property>
          </properties>
        </widget>
  • <widget name="task_title" type="text">
          <labels>
            <label mode="any">label.workflow.task.Name</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.task.name</field>
          </fields>
          <properties mode="any">
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="task_directive" type="text">
          <labels>
            <label mode="any">label.workflow.task.directive</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.task.directive</field>
          </fields>
          <properties mode="any">
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="task_assignee" type="multiplePrefixedUsersSuggestion">
          <labels>
            <label mode="any">label.document.route.content.header.actors
            </label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.task.actors</field>
          </fields>
        </widget>
  • <widget name="task_comments" type="list">
          <labels>
            <label mode="any">label.content.header.comments</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.task.taskComments</field>
          </fields>
          <properties mode="any">
            <property name="localize">true</property>
            <property name="hideSubLabels">true</property>
          </properties>
          <subWidgets>
            <widget name="comment" type="text">
              <fields>
                <field>text</field>
              </fields>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="task_start_date" type="datetime">
          <labels>
            <label mode="any">label.workflow.task.startdate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.dublincore.created</field>
          </fields>
        </widget>
  • <widget name="task_due_date" type="datetime">
          <labels>
            <label mode="any">label.workflow.task.duedate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>data.task.dueDate</field>
          </fields>
        </widget>
  • <widget name="task_workflow_title" type="task_workflow_title">
          <labels>
            <label mode="any">label.route.task.workflowStep</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field/>
            <field>name</field>
          </fields>
        </widget>
  • <widget name="task_workflow_name" type="task_workflow_name">
          <labels>
            <label mode="any">label.route.task.workflowStep</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field/>
            <field>name</field>
          </fields>
        </widget>
  • <widget name="task_show_workflow_graph" type="current_route_show_graph">
          <labels>
            <label mode="any"/>
          </labels>
          <fields>
            <field>processId</field>
          </fields>
        </widget>
  • <widget name="task_actors" type="multiplePrefixedUsersSuggestion">
          <labels>
            <label mode="any">label.document.route.content.header.actors
            </label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>actors</field>
          </fields>
        </widget>
  • <widget name="task_duedate" type="datetime">
          <labels>
            <label mode="any">label.workflow.task.duedate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dueDate</field>
          </fields>
        </widget>
  • <widget name="task_simple_directive" type="text">
          <labels>
            <label mode="any">label.workflow.task.directive</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>directive</field>
          </fields>
          <properties mode="any">
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="task_delegated_users" type="multiplePrefixedUsersSuggestion">
          <labels>
            <label mode="any">label.route.task.delegated.to</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>delegatedActors</field>
          </fields>
        </widget>
  • <widget name="task_layout_with_actions" type="task_layout_with_actions">
          <labels>
            <label mode="any"/>
          </labels>
          <fields>
            <field/>
            <field>id</field>
          </fields>
        </widget>
  • <widget name="reassign_task_widget" type="action">
          <properties widgetMode="any">
            <property name="action">#{webActions.getActionForDocument("reassignTask",null,
              false)}
            </property>
            <property name="styleClass">globalActionBar</property>
            <property name="subStyleClass">contextActions</property>
            <property name="actionStyleClass">button</property>
            <property name="actionsDisplay">buttons</property>
            <property name="addForm">true</property>
            <property name="useAjaxForm">true</property>
            <property name="ignoreTemplateProperty">true</property>
          </properties>
          <widgetModes>
            <mode value="any">#{layoutValue.isCanBeReassigned()?'edit':'hidden'}
            </mode>
          </widgetModes>
        </widget>
  • <widget name="delegate_task_widget" type="action">
          <properties widgetMode="any">
            <property name="action">#{webActions.getActionForDocument("delegateTask",null,
              false)}
            </property>
            <property name="styleClass">globalActionBar</property>
            <property name="subStyleClass">contextActions</property>
            <property name="actionStyleClass">button</property>
            <property name="actionsDisplay">buttons</property>
            <property name="addForm">true</property>
            <property name="useAjaxForm">true</property>
            <property name="ignoreTemplateProperty">true</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="current_route_description" type="current_route_description"/>
    <widget name="current_route_show_graph" type="current_route_show_graph">
      <fields>
        <field>#{layoutValue.document.id}
        </field>
      </fields>
      <handlingLabels>true</handlingLabels>
    </widget>
    <widget name="current_route_abandon" type="current_route_abandon">
      <controls mode="any">
        <control name="requireSurroundingForm">true</control>
      </controls>
    </widget>
    <widget name="current_route_user_tasks" type="current_route_user_tasks">
      <labels>
        <label mode="any"/>
      </labels>
      <properties widgetMode="any">
        <property name="displayTaskAdditionalActions">true</property>
      </properties>
      <controls mode="any">
        <control name="handleLabels">true</control>
        <control name="requireSurroundingForm">false</control>
      </controls>
    </widget>
    <widget name="current_route_open_tasks" type="current_route_open_tasks">
      <labels>
        <label mode="any"/>
      </labels>
      <controls mode="any">
        <control name="handleLabels">true</control>
        <control name="requireSurroundingForm">true</control>
      </controls>
    </widget>

    <widget name="current_route_previous_tasks" type="contentViewWithForms">
      <labels>
        <label mode="any"/>
      </labels>
      <translated>false</translated>
      <properties widgetMode="any">
        <property name="contentViewName">route_past_steps</property>
      </properties>
    </widget>

    <widget name="current_route_panel_top" type="summary_current_document_custom_actions">
      <labels>
        <label mode="any"/>
      </labels>
      <properties widgetMode="any">
        <property name="category">CURRENT_ROUTE_PANEL_TOP</property>
        <property name="subStyleClass">summaryActions</property>
      </properties>
    </widget>

    <widget name="current_route_panel_left" type="summary_current_document_custom_actions">
      <labels>
        <label mode="any"/>
      </labels>
      <properties widgetMode="any">
        <property name="category">CURRENT_ROUTE_PANEL_LEFT</property>
        <property name="subStyleClass">summaryActions</property>
      </properties>
    </widget>

    <widget name="current_route_panel_right" type="summary_current_document_custom_actions">
      <labels>
        <label mode="any"/>
      </labels>
      <properties widgetMode="any">
        <property name="category">CURRENT_ROUTE_PANEL_RIGHT</property>
        <property name="subStyleClass">summaryActions</property>
      </properties>
    </widget>

    <widget name="current_route_panel_bottom" type="summary_current_document_custom_actions">
      <labels>
        <label mode="any"/>
      </labels>
      <properties widgetMode="any">
        <property name="category">CURRENT_ROUTE_PANEL_BOTTOM</property>
        <property name="subStyleClass">summaryActions</property>
      </properties>
    </widget>

    <!-- for previous tasks layout -->
    <widget name="task_title" type="text">
      <labels>
        <label mode="any">label.workflow.task.Name</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.task.name</field>
      </fields>
      <properties mode="any">
        <property name="localize">true</property>
      </properties>
    </widget>
    <widget name="task_directive" type="text">
      <labels>
        <label mode="any">label.workflow.task.directive</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.task.directive</field>
      </fields>
      <properties mode="any">
        <property name="localize">true</property>
      </properties>
    </widget>
    <widget name="task_assignee" type="multiplePrefixedUsersSuggestion">
      <labels>
        <label mode="any">label.document.route.content.header.actors
        </label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.task.actors</field>
      </fields>
    </widget>
    <widget name="task_comments" type="list">
      <labels>
        <label mode="any">label.content.header.comments</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.task.taskComments</field>
      </fields>
      <properties mode="any">
        <property name="localize">true</property>
        <property name="hideSubLabels">true</property>
      </properties>
      <subWidgets>
        <widget name="comment" type="text">
          <fields>
            <field>text</field>
          </fields>
        </widget>
      </subWidgets>
    </widget>
    <widget name="task_start_date" type="datetime">
      <labels>
        <label mode="any">label.workflow.task.startdate</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.dublincore.created</field>
      </fields>
    </widget>
    <widget name="task_due_date" type="datetime">
      <labels>
        <label mode="any">label.workflow.task.duedate</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.task.dueDate</field>
      </fields>
    </widget>

    <!-- for "task_layout" @since 5.8, apply to an object Task -->
    <widget name="task_workflow_title" type="task_workflow_title">
      <labels>
        <label mode="any">label.route.task.workflowStep</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field/>
        <field>name</field>
      </fields>
    </widget>
    <widget name="task_workflow_name" type="task_workflow_name">
      <labels>
        <label mode="any">label.route.task.workflowStep</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field/>
        <field>name</field>
      </fields>
    </widget>
    <widget name="task_show_workflow_graph" type="current_route_show_graph">
      <labels>
        <label mode="any"/>
      </labels>
      <fields>
        <field>processId</field>
      </fields>
    </widget>
    <widget name="task_actors" type="multiplePrefixedUsersSuggestion">
      <labels>
        <label mode="any">label.document.route.content.header.actors
        </label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>actors</field>
      </fields>
    </widget>
    <widget name="task_duedate" type="datetime">
      <labels>
        <label mode="any">label.workflow.task.duedate</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dueDate</field>
      </fields>
    </widget>
    <widget name="task_simple_directive" type="text">
      <labels>
        <label mode="any">label.workflow.task.directive</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>directive</field>
      </fields>
      <properties mode="any">
        <property name="localize">true</property>
      </properties>
    </widget>
    <widget name="task_delegated_users" type="multiplePrefixedUsersSuggestion">
      <labels>
        <label mode="any">label.route.task.delegated.to</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>delegatedActors</field>
      </fields>
    </widget>
    <widget name="task_layout_with_actions" type="task_layout_with_actions">
      <labels>
        <label mode="any"/>
      </labels>
      <fields>
        <field/>
        <field>id</field>
      </fields>
    </widget>

    <widget name="reassign_task_widget" type="action">
      <properties widgetMode="any">
        <property name="action">#{webActions.getActionForDocument("reassignTask",null,
          false)}
        </property>
        <property name="styleClass">globalActionBar</property>
        <property name="subStyleClass">contextActions</property>
        <property name="actionStyleClass">button</property>
        <property name="actionsDisplay">buttons</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">true</property>
        <property name="ignoreTemplateProperty">true</property>
      </properties>
      <widgetModes>
        <mode value="any">#{layoutValue.isCanBeReassigned()?'edit':'hidden'}
        </mode>
      </widgetModes>
    </widget>

    <widget name="delegate_task_widget" type="action">
      <properties widgetMode="any">
        <property name="action">#{webActions.getActionForDocument("delegateTask",null,
          false)}
        </property>
        <property name="styleClass">globalActionBar</property>
        <property name="subStyleClass">contextActions</property>
        <property name="actionStyleClass">button</property>
        <property name="actionsDisplay">buttons</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">true</property>
        <property name="ignoreTemplateProperty">true</property>
      </properties>
    </widget>

  </extension>